import { createApp } from 'vue'
import App from './App.vue'
import './index.css'
import { createPinia } from 'pinia'

import { ElMessage } from "element-plus";//引入message组件
// import { IMessage } from "element-plus/lib/el-message/src/types";//引入类型文件
import 'element-plus/es/components/notification/style/css'

const app=createApp(App)

app.use(ElMessage);//在app上使用message组件
// app.config.globalProperties.$message = ElMessage; //挂载到app实例上

app.use(createPinia())
app.mount('#app')

// declare module "@vue/runtime-core" {
//     interface ComponentCustomProperties {
//       $message: IMessage; //挂载类型
//     }
//   }